<?php
	session_unset();
	session_start();
	
	require_once('../../lib/'.'BaseDir.inc.htm');
	require_once (EIU_LIB.'View.class.htm');
	require_once('../../lib/'.'DBCommon.class.htm');

	$oDB = new DBCommon();
	$conn =  $oDB->stl_openConn();
	$q_empList = "SELECT `StaffID`,`FullName` FROM `staff_tbl` WHERE `isDeleted` = 0";
	
	$rs_empList = $oDB->stl_db_select($q_empList, $conn);

	if(is_array($rs_empList)){
		$i=0;
		foreach($rs_empList as $key=>$value){
			$data1['empList'][$i]['EmpID']=$rs_empList[$key]->StaffID;
			$data1['empList'][$i]['EmpFullName']=$rs_empList[$key]->FullName;
			$i++;
		}
	}

	echo json_encode($data1);
	$oDB->stl_closeConn($conn);
?>
